<?php
return [
    [
        'id' => 1,
        'parent_id' => 0,
        'path' => '/admin/dashboard',
        'icon' => 'home',
        'meta' => array(
            'title' => '首页',
            'permission' => 'admin.dashboard',
            'description' => '展示后台首页',
        ),
        'name' => 'admin.dashboard',
    ],
    [
        'id' => 2,
        'parent_id' => 0,
        'path' => '/admin/user',
        'icon' => 'team',
        'meta' => array(
            'title' => '管理员管理',
            'permission' => 'admin.user',
            'description' => '展示所有管理员管理页面',
        ),
        'name' => 'admin.user',
        'children' => array(
            [
                'id' => 3,
                'parent_id' => 2,
                'icon' => 'solution',
                'path' => '/admin/user/index',
                "component" => "/admin/user/index.vue",
                'meta' => array(
                    'title' => '管理员列表',
                    'permission' => 'admin.user.index',
                    'description' => '展示所有管理员列表,您可以修改、删除、设置用户角色',
                ),
                'name' => 'admin.user.index',
            ])
    ],
    [
        'id' => 4,
        'parent_id' => 0,
        'path' => '/admin/business',
        'icon' => 'file-protect',
        'meta' => array(
            'title' => '事务管理',
            'permission' => 'admin.business',
            'description' => '事务管理',
        ),
        'name' => 'admin.business',
        'children' => array(
            [
                'id' => 5,
                'parent_id' => 4,
                'icon' => 'folder',
                'path' => '/admin/business/consultation',
                'component' => '/admin/business/consultation',
                'meta' => array(
                    'title' => '咨询管理',
                    'permission' => 'admin.business.consultation',
                    'description' => '咨询管理',
                ),
                'name' => 'admin.business.consultation',
            ],
            [
                'id' => 6,
                'parent_id' => 4,
                'icon' => 'read',
                'path' => '/admin/business/appeal',
                'component' => '/admin/business/appeal.vue',
                'meta' => array(
                    'title' => '诉求管理',
                    'permission' => 'admin.business.appeal',
                    'description' => '诉求管理',
                ),
                'name' => 'admin.business.appeal',
            ],
            [
                'id' => 7,
                'parent_id' => 4,
                'icon' => 'alert',
                'path' => '/admin/business/report',
                'component' => '/admin/business/report.vue',
                'meta' => array(
                    'title' => '举报管理',
                    'permission' => 'admin.business.report',
                    'description' => '举报管理',
                ),
                'name' => 'admin.business.report',
            ]
        )
    ],
    [
        'id' => 8,
        'parent_id' => 0,
        'path' => '/admin/policy',
        'icon' => 'book',
        'meta' => array(
            'title' => '政策管理',
            'permission' => 'admin.policy',
            'description' => '政策管理',
        ),
        'name' => 'admin.policy',
        'children' => array(
            [
                'id' => 9,
                'parent_id' => 8,
                'icon' => 'bars',
                'path' => '/admin/policy/index',
                'component' => '/admin/policy/index.vue',
                'meta' => array(
                    'title' => '政策列表',
                    'permission' => 'admin.policy.index',
                    'description' => '政策列表',
                ),
                'name' => 'admin.policy.index',
            ],
            [
                'id' => 10,
                'parent_id' => 8,
                'icon' => 'folder',
                'path' => '/admin/policy/create',
                'hidden' => true,
                'component' => '/admin/policy/create.vue',
                'meta' => array(
                    'title' => '政策创建',
                    'permission' => 'admin.policy.create',
                    'description' => '政策创建',
                ),
                'name' => 'admin.policy.create',
            ],
            [
                'id' => 11,
                'parent_id' => 8,
                'icon' => 'folder',
                'path' => '/admin/policy/:id/edit',
                'component' => '/admin/policy/edit.vue',
                'hidden' => true,
                'meta' => array(
                    'title' => '政策编辑',
                    'permission' => 'admin.policy.edit',
                    'description' => '政策编辑',
                ),
                'name' => 'admin.policy.edit',
            ],
        )
    ],
    [
        'id' => 12,
        'parent_id' => 0,
        'path' => '/admin/carousel',
        'icon' => 'video-camera',
        'meta' => array(
            'title' => '轮播图管理',
            'permission' => 'admin.carousel',
            'description' => '轮播图管理',
        ),
        'name' => 'admin.carousel',
        'children' => array(
            [
                'id' => 13,
                'parent_id' => 12,
                'icon' => 'picture',
                'path' => '/admin/carousel/index',
                'component' => '/admin/carousel/index.vue',
                'meta' => array(
                    'title' => '轮播图列表',
                    'permission' => 'admin.carousel.index',
                    'description' => '轮播图列表',
                ),
                'name' => 'admin.carousel.index',
            ],

        )
    ],
    [
        'id' => 14,
        'parent_id' => 0,
        'path' => '/admin/notice',
        'icon' => 'sound',
        'meta' => array(
            'title' => '公告管理',
            'permission' => 'admin.notice',
            'description' => '公告管理',
        ),
        'name' => 'admin.notice',
        'children' => array(
            [
                'id' => 15,
                'parent_id' => 14,
                'icon' => 'profile',
                'path' => '/admin/notice/index',
                'component' => '/admin/notice/index.vue',
                'meta' => array(
                    'title' => '公告管理列表',
                    'permission' => 'admin.notice.index',
                    'description' => '公告管理列表',
                ),
                'name' => 'admin.notice.index',
            ],

        )
    ],
    [
        'id' => 16,
        'parent_id' => 0,
        'path' => '/admin/system',
        'icon' => 'setting',
        'meta' => array(
            'title' => '系统管理',
            'permission' => 'admin.system',
            'description' => '展示所有系统管理页面',
        ),
        'name' => 'admin.system',
        'children' => array(
            [
                'id' => 17,
                'parent_id' => 16,
                'icon' => 'contacts',
                'path' => '/admin/system/roles',
                'component' => '/admin/system/roles.vue',
                'meta' => array(
                    'title' => '角色管理',
                    'permission' => 'admin.system.roles',
                    'description' => '展示所有角色管理页面,您可以初始化角色,并为角色添加权限',
                ),
                'name' => 'admin.system.roles',
            ],
            [
                'id' => 18,
                'parent_id' => 16,
                'icon' => 'insurance',
                'path' => '/admin/system/permissions',
                'component' => '/admin/system/permissions.vue',
                'meta' => array(
                    'title' => '权限管理',
                    'permission' => 'admin.system.permissions',
                    'description' => '初始化权限，全局菜单生成',
                ),
                'name' => 'admin.system.permissions',
            ],
            [
                'id' => 19,
                'parent_id' => 16,
                'icon' => 'apartment',
                'path' => '/admin/system/village',
                'component' => '/admin/system/village.vue',
                'meta' => array(
                    'title' => '行政村管理',
                    'permission' => 'admin.system.village',
                    'description' => '行政村管理',
                ),
                'name' => 'admin.system.village',
            ],
            [
                'id' => 20,
                'parent_id' => 16,
                'icon' => 'wechat',
                'path' => '/admin/system/wxuser',
                'component' => '/admin/system/wxuser.vue',
                'meta' => array(
                    'title' => '微信用户管理',
                    'permission' => 'admin.system.wxuser',
                    'description' => '微信用户管理',
                ),
                'name' => 'admin.system.wxuser',
            ],
        )
    ],
];